﻿<Window x:Class="GemGui.ConfigureWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Name="WndConfigure"
        WindowStyle="ToolWindow"
        ShowInTaskbar="False"
        DataContext="{Binding RelativeSource={RelativeSource Self}}"
        FocusManager.FocusedElement="{Binding ElementName=TxtRootFolder}"
        Title="Configure GEM" Height="193.726" Width="390.876">
  <Grid
    DataContext="{Binding ViewModel}" Margin="0,0,-8,-5">
    <TextBox x:Name="TxtRootFolder" Height="22" Margin="10,36,97,0" TextWrapping="Wrap" VerticalAlignment="Top" TabIndex="0"
      Text="{Binding RootFolderForSearch, UpdateSourceTrigger=PropertyChanged}" />
    <Button Content="Browse" Margin="0,36,17,0" Click="BtnBrowse_Click" TabIndex="1" Height="22" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75"
      Name="BtnBrowse" />
    <Button Content="Cancel" Margin="0,0,17,16" IsCancel="True" TabIndex="101" HorizontalAlignment="Right" Width="75" Height="22" VerticalAlignment="Bottom"/>
    <Button Content="OK" Margin="0,0,97,16" IsDefault="True" TabIndex="100"
      IsEnabled="{Binding HasRootFolder}" Height="22" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75"
      Click="BtnOk_Click"
      Name="BtnOk" />
    <Label Content="Root folder for search:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.398,1.653"/>
    <Label Content="The given folder does not exist." Margin="10,0,191,16" RenderTransformOrigin="0.632,-0.5" Foreground="#FFFA0000" Height="26" VerticalAlignment="Bottom"
      Visibility="{Binding IsRootFolderValid}"/>
    <xctk:DecimalUpDown Margin="10,99,0,0" RenderTransformOrigin="0.5,0.367" HorizontalAlignment="Left" Width="49" Height="23" VerticalAlignment="Top"
      TabIndex="2"
      Maximum="50"
      Minimum="1"
      Value="{Binding MaxSearchDepth}" />
    <Label Content="Maximum folder depth for search:" HorizontalAlignment="Left" Margin="10,73,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.398,1.653"/>

  </Grid>
</Window>
